import axios from '@/libs/api.request.js'

/** 查询租赁服务类别列表 */
export const getLeaseList = data =>{
  return axios.request({
    url: "/api/team/rental/selectLeaseList",
    method: "get",
  })
}

/** 查询租赁服务商品 */
export const selectRentalServiceList = teamId =>{
  return axios.request({
    url: "/api/team/rental/selectRentalServiceList/"+teamId,
    method: "get",
  })
}

export const selectRentalServiceById = rentalId =>{
  return axios.request({
    url: "/api/team/rental/selectRentalServiceById/"+rentalId,
    method: "get",
  })
}

// 订单预支付
export const insertOrderMaster = data =>{
  return axios.request({
    url: "/api/team/rental/insertOrderMaster",
    method: "post",
    data:data
  })
}

// 订单详情
export const insertOrderDetail = data =>{
  return axios.request({
    url: "/api/team/rental/insertOrderDetail",
    method: "post",
    data:data
  })
}

// 上传凭证照片
export const uploadVoucher = data =>{
  return axios.request({
    url: "/api/order/master/uploadVoucher",
    method: "post",
    data:data
  })
}


export const selectRentalServiceListOne = address =>{
  return axios.request({
    url: "/api/team/rental/selectRentalServiceListOne/"+address,
    method: "get",
  })
}


export const selectRentalServiceListTwo = data =>{
  return axios.request({
    url: "/api/team/rental/selectRentalServiceListTwo",
    method: "post",
    data:data
  })
}
